package chen.huai.jie.spring.xmlconfig.component.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class AppServletContextListener implements ServletContextListener {
    private Logger logger = LoggerFactory.getLogger(AppServletContextListener.class);

    public void contextInitialized(ServletContextEvent sce) {
        logger.info("项目启动.");
    }

    public void contextDestroyed(ServletContextEvent sce) {
        logger.info("项目停止.");
    }
}
